<template>
    <dModal ref="modalRef">
        <iframe :src="iframeUrl" frameborder="0" h-full w-full></iframe>
    </dModal>
</template>

<script setup lang="ts">
import dModal from '@/components/modal/index.vue'
import { useModal } from '@/components/modal'
import { ref } from 'vue';

const {
    modalRef,
    showModal,
} = useModal()

const iframeUrl = ref('')
const show = (url:string) => {
    iframeUrl.value = url
    showModal()
}

defineExpose({
    show
})
</script>

<style scoped></style>